package com.juyu.miliao.api.controller;

import com.juyu.miliao.api.domain.PicCheck;
import com.juyu.miliao.api.service.PicCheckService;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import javax.validation.Valid;

/**
 * 鉴黄功能
 */
@RestController
@RequestMapping("/picCheck")
public class PicCheckController {
    @Resource
    private PicCheckService picCheckService;

    /**
     * 保存鉴黄截图，再将id发送给后台
     * @param picCheck
     */
    @PostMapping()
    public void addPicCheck(@Valid PicCheck picCheck){
        picCheckService.addPicCheck(picCheck);
    }
}
